#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define MaxVertexNum 100


typedef struct Vertex *PtrToV;
struct Vertex{
    int x;
    int y;
    bool visit;
};


int main()
{

    int N, D;
    int x_, y_;//location of a crocodile
    scanf("%d %d", &N, &D);
    PtrToV vertex[MaxVertexNum];
    for (int i = 0; i < N;i++)
    {
        scanf("%d %d", &x_, &y_);
        vertex[i] = (PtrToV)malloc(sizeof(struct Vertex));
        vertex[i]->x = x_;
        vertex[i]->y = y_;
        vertex[i]->visit = false;
    }
    CheckJump(D, N, vertex);

    return 0;

}
void CheckJump(int D, int N, PtrToV *vertex)
{
    int x_, y_;
    bool result;
    // N = N + 2;
    for (int i = 0; i < N;i++)
    {
        x_ = vertex[i]->x;
        y_ = vertex[i]->y;
        if (!vertex[i]->visit && FirstJump(x_, y_, D))
        {
            vertex[i]->visit = true;
            result = DFS(x_, y_, vertex, D, N, i);
            if (result == true)
                break;
        }

    }
    if (result == true)
        printf("Yes");
    else
        printf("No");
}
bool DFS(int x, int y, PtrToV *vertex, int D, int N, int vertex_i)
{

    bool result = false;
    if (IsSafe(x, y, D))
        return true;
    else
    {
        for (int i = 0; i < N; i++)
        {
            if (!vertex[i]->visit && Jump(x, y, vertex[i]->x, vertex[i]->y, D))
            {
                vertex[i]->visit = true;
                result = DFS(vertex[i]->x, vertex[i]->y, vertex, D, N, i);
                if (result == true)
                    break;
            }
        }
    }
    return result;
}
bool Jump(int now_x, int now_y, int next_x, int next_y, int D)
{
    if ((now_x - next_x) * (now_x - next_x) + (now_y - next_y) * (now_y - next_y) <= D * D)
        return true;
    else
        return false;
}
bool FirstJump(int x, int y, int D)
{
    if ((x * x + y * y) <= (15 + D) * (15 + D))
        return true;
    else
        return false;
}
bool IsSafe(int x, int y, int D)
{
    if (abs(abs(x) - 50) <= D || abs(abs(y) - 50) <= D)
        return true;
    else
        return false;
}